import { ylRequest } from './request'

export function getReqTopMv(offset = 0,limit = 20) {
  return ylRequest.get({
    url: '/top/mv',
    data: {
      limit,
      offset
    }
  })
}
// 获取视频url
export function getReqMvUrl(id) {
  return ylRequest.get({
    url: '/mv/url',
    data: {
      id
    }
  })
}

// 获取mv数据
export function getReqMvInfo(mvid) {
  return ylRequest.get({
    url: '/mv/detail',
    data: {
      mvid
    }
  })
}

// 获取相关视频
export function getReqMvRelated(id) {
  return ylRequest.get({
    url: '/related/allvideo',
    data: {
      id
    }
  })
}